<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>${title}</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
        }

        .nav {
            margin-bottom: 20px;
        }

        .nav a {
            margin-right: 15px;
            text-decoration: none;
            color: #0066cc;
        }

        .content {
            padding: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }

        .user-info {
            margin-top: 15px;
            line-height: 1.8;
        }

        .actions {
            margin-top: 20px;
        }

        .actions a {
            display: inline-block;
            padding: 6px 12px;
            margin-right: 10px;
            text-decoration: none;
            border-radius: 4px;
        }

        .btn-edit {
            background-color: #ffc107;
            color: #212529;
            border: 1px solid #ffc107;
        }

        .btn-back {
            background-color: #6c757d;
            color: white;
            border: 1px solid #6c757d;
        }
    </style>
</head>
<body>
<div class="nav">
    <a href="${pageContext.request.contextPath}/">首页</a>
    <a href="${pageContext.request.contextPath}/about">关于我们</a>
    <a href="${pageContext.request.contextPath}/users">用户管理</a>
</div>

<div class="content">
    <h1>${title}</h1>

    <div class="user-info">
        <p><strong>ID：</strong>${user.id}</p>
        <p><strong>用户名：</strong>${user.username}</p>
        <p><strong>邮箱：</strong>${user.email}</p>
    </div>

    <div class="actions">
        <a href="${pageContext.request.contextPath}/users/${user.id}/edit" class="btn-edit">编辑</a>
        <a href="${pageContext.request.contextPath}/users" class="btn-back">返回列表</a>
    </div>
</div>
</body>
</html>
